import request from '@/api'

export function select(query) {
    return request({
        url: '/plist',
        method: 'get',
        params: query
    })
}

export function selectAll(query) {
    return request({
        url: '/selectAll',
        method: 'get',
        params: query
    })
}

export function insert(data) {
    return request({
        url: '/insert',
        method: 'post',
        data: data
    })
}
export function update(data) {
    return request({
        url: '/update',
        method: 'put',
        data: data
    })
}
export function delpacth(query) {
    return request({
        url: '/delete',
        method: 'delete',
        params: query
    })
}